import { Result } from "@/model";
import request from "@/utils/request";
import { AxiosPromise } from "axios";

/**
 * 获取首页轮播图
 * @returns 获取轮播图
 */
export function getHomeCarousel(): AxiosPromise<Result<[]>> {
  return request({
    url: "/index/carouselChart",
    method: "get",
  });
}
/**
 * 获取首页数据
 * @returns 获取首页数据
 */
export function getIndex(): AxiosPromise<Result<any>> {
  return request({
    url: "/index/index",
    method: "get",
  });
}

